<?php
namespace Admin\Controller;
use Think\Controller;
class CommonController extends Controller {
    public function __construct(){
        parent::__construct();
        $username=session('username');
        $upassword=session('upassword');
 
        if(empty($username)||empty($upassword)){   
            $this->error('未登录或登录超时,请重新登录',U('Login/index'),1);
        }

		  
    }  
}

?>